package com.xpec.c4.game.datamanager.agent;

import com.ms.player.Player;
import com.ms.player.UpdateAttributeList;
import com.xpec.c4.game.datamanager.BaseDataInfo;


/**
 * 
 * @author Mike_Tung
 *
 */
public class PlayerData extends BaseDataInfo{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6452230065547339014L;
	
	/**
	 * 是否正在試放owner旗標
	 */
	private boolean executeReleaseOwner  = false; 
	
	/**
	 * 發出創角需求的 client ip
	 */
	private String clientIp;
	
	/**
	 * 要異動的屬性清單, 如果這個不是 null 就只會參考這一個清單裡的資料去寫 db
	 */
	private UpdateAttributeList updateAttrList;
	
	public Player getPlayer() {
		Object obj = getData();
		return (obj != null) ? (Player)getData() : null;
	}

	public void setPlayer(Player player) {
		setData (player);
	}

	public boolean isExecuteReleaseOwner() {
		return executeReleaseOwner;
	}

	public void setExecuteReleaseOwner(boolean executeReleaseOwner) {
		this.executeReleaseOwner = executeReleaseOwner;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public UpdateAttributeList getUpdateAttrList() {
		return updateAttrList;
	}

	public void setUpdateAttrList(UpdateAttributeList updateAttrList) {
		this.updateAttrList = updateAttrList;
	}
}
